/*	**********************************************************************
	File:		fft.h
	Author:		Dominic Mazzoni, Adnan Srna, Peter Kober, Ivo Havranek
	Purpose:	AugmentedReality 2
	(up)Date:	March/April 2010
	Descr.:		FFT Analysis
	Origin:		Salzburg University of Applied Science
	**********************************************************************	*/

#ifndef _FFT
#define _FFT

class fft {
	public:
	fft();
	~fft();	
	
	/* Calculate the power spectrum */
	void powerSpectrum(int start, int half, float *data, int windowSize,float *magnitude,float *phase, float *power, float *avg_power);
	/* ... the inverse */
	void inversePowerSpectrum(int start, int half, int windowSize, float *finalOut,float *magnitude,float *phase);
};

#endif	
